prune: Error if --static-deltas-only without --delete-commit
authorColin Walters <walters@verbum.org>
Mon, 5 Mar 2018 15:42:19 +0000 (10:42 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 5 Mar 2018 17:39:35 +0000 (17:39 +0000)
commit79d6f635df47e6519d0211d08cce89b1034562bd
tree6e2e27a0e148b0f82b83aad11ef1c9fedb1e4a77
parent733c0498dca8926e9078563240bd06a488fcd527
prune: Error if --static-deltas-only without --delete-commit

The original changes here apparently had the *idea* that `--static-deltas-only`
would be useful in general, but we never implemented that.  The current
situation where it's ignored unless `--delete-commit` is specified is
very misleading and I can easily see it leading to data loss for people.

Let's error out until we have a chance to make it actually useful.

Related: https://github.com/ostreedev/ostree/issues/1479

Closes: #1482
Approved by: giuseppe
src/ostree/ot-builtin-prune.c
tests/test-prune.sh